{extend name="default/base/base_seller" /}
{block name="seller_main"}
<form method="get">
    <table class="search-form">
        <tr>
            <td>&nbsp;</td>
            <th>{$Think.lang.videoupload_time}</th>
            <td class="w240">
                <input name="add_time_from" id="add_time_from" type="text" class="text w70" value="{$Request.get.add_time_from}" />
                <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>&nbsp;&#8211;&nbsp;
                <input name="add_time_to" id="add_time_to" type="text" class="text w70" value="{$Request.get.add_time_to}" />
                <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
            </td>
            <td class="w70 tc">
                <input type="submit" class="submit" value="{$Think.lang.ds_search}" />
            </td>
        </tr>
    </table>
</form>
<table class="dssc-default-table">
    <thead>
        <tr>
            <th class="w300">{$Think.lang.videoupload_fileid}</th>
            <th class="w200">{$Think.lang.videoupload_url}</th>
            <th class="w200">{$Think.lang.videoupload_type}</th>
            <th class="w200">{$Think.lang.videoupload_time}</th>
            <th class="w100">{$Think.lang.ds_handle}</th>
        </tr>
    </thead>
    <tbody>
        {notempty name="videoupload_list"}
        {foreach name="videoupload_list" item="v"}
        <tr class="bd-line">
            <td>{$v.videoupload_fileid}</td>
            <td>{$v.videoupload_url}</td>
            <td>{$v.videoupload_type}</td>
            <td>{$v.videoupload_time|date="Y-m-d H:s",###}</td>
            <td class="dscs-table-handle">
                <span><a href="javascript:void(0)" class="btn-red" onclick="ds_ajaxget_confirm('{:url('Sellervideo/del',['id'=>$v.videoupload_id])}','{$Think.lang.ds_ensure_del}');"><i class="iconfont">&#xe725;</i><p>{$Think.lang.ds_del}</p></a></span>
            </td>
        </tr>
        {/foreach}
        {else}
        <tr>
            <td colspan="20" class="norecord">
                <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div>
            </td>
        </tr>
        {/notempty}
    </tbody>
</table>
{$show_page}
<script type="text/javascript">
    $(document).ready(function () {
        $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
        $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>

{/block}
